package com.tlgen.controller;

import com.tlgen.model.Payorder;
import com.tlgen.service.PayorderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.GetMapping;
import java.util.List;

@RestController
public class PayorderController{

@Autowired
PayorderService payorderService;

@GetMapping("/payorders")
public List<Payorder> getAllPayorders(){
return payorderService.getAllPayorders();
}
}
